package com.yueyouth.service.impl;

import com.sun.istack.internal.NotNull;
import com.yueyouth.common.JsonData;
import com.yueyouth.entity.TUserBaseInfo;
import com.yueyouth.mapper.TUserBaseInfoMapper;
import com.yueyouth.service.TUserBaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TUserBaseInfoServiceImpl implements TUserBaseInfoService {

    @Autowired
    private TUserBaseInfoMapper userBaseInfoMapper;

    /**
     * 注册
     *
     * @param tUserBaseInfo
     */
    @Override
    public JsonData register(@NotNull TUserBaseInfo tUserBaseInfo) {
        Integer responseCode = userBaseInfoMapper.insertSelective(tUserBaseInfo);
        if(responseCode > 0){
            return JsonData.buildSuccess("成功",200);
        }else{
            return JsonData.buildError("成功",500);
        }

    }
}
